package a.f;

public class fd
  implements jc
{
  public static final byte j = 1;
  public static final byte k = 2;
  public static final byte l = 4;
  private static final byte m = 7;
  public static final byte n = 1;
  public static final byte o = 2;
  private static final byte p = 3;
  public static final byte q = 1;
  public static final byte r = 2;
  private static final byte s = 3;
  public static final byte t = 1;
  public static final byte u = 2;
  private static final byte v = 3;
  private static final double w = 6.283185307179586D;
  private byte x;
  private byte y;
  private byte z;
  private double A;
  private byte B;
  private byte C;
  private byte D;
  private double E;
  private boolean F;
  private static final fd[] G = new fd[256];
  public static int H;
  
  public fd()
  {
    this.x = 4;
    this.y = 8;
    this.z = 1;
    this.A = 0.0D;
    this.B = 1;
    this.C = 1;
    this.D = 1;
    this.E = -1.0D;
  }
  
  public fd(fd paramfd)
  {
    this.x = paramfd.x;
    this.y = paramfd.y;
    this.z = paramfd.z;
    this.A = paramfd.A;
    this.B = paramfd.B;
    this.C = paramfd.C;
    this.D = paramfd.D;
    this.E = paramfd.E;
  }
  
  public byte a()
  {
    return this.x;
  }
  
  public void a(byte paramByte)
  {
    B();
    this.x = ((byte)(paramByte & 0x7));
  }
  
  public byte b()
  {
    return this.y;
  }
  
  public void b(byte paramByte)
  {
    B();
    this.y = ((byte)(paramByte & 0x38));
  }
  
  public byte c()
  {
    return this.z;
  }
  
  public void c(byte paramByte)
  {
    B();
    int i = paramByte & 0x7;
    if (!o.eg)
    {
      if (i == 0) {
        throw new IllegalArgumentException(Byte.toString(paramByte));
      }
      this.z = ((byte)i);
    }
  }
  
  public double d()
  {
    return this.A;
  }
  
  public void a(double paramDouble)
  {
    B();
    this.A = c(paramDouble);
  }
  
  private static double c(double paramDouble)
  {
    return paramDouble - 6.283185307179586D * Math.floor(paramDouble / 6.283185307179586D);
  }
  
  public byte e()
  {
    return this.B;
  }
  
  public void d(byte paramByte)
  {
    B();
    int i = paramByte & 0x3;
    if (!o.eg)
    {
      if (i == 0) {
        throw new IllegalArgumentException(Byte.toString(paramByte));
      }
      this.B = ((byte)i);
    }
  }
  
  public byte f()
  {
    return this.C;
  }
  
  public void e(byte paramByte)
  {
    B();
    int i = paramByte & 0x3;
    if (!o.eg)
    {
      if (i == 0) {
        throw new IllegalArgumentException(Byte.toString(paramByte));
      }
      this.C = ((byte)i);
    }
  }
  
  public byte g()
  {
    return this.D;
  }
  
  public void f(byte paramByte)
  {
    B();
    int i = paramByte & 0x3;
    if (!o.eg)
    {
      if (i == 0) {
        throw new IllegalArgumentException(Byte.toString(paramByte));
      }
      this.D = ((byte)i);
    }
  }
  
  public double h()
  {
    return this.E;
  }
  
  public void d(double paramDouble)
  {
    if ((o.eg) || ((Double.isInfinite(paramDouble)) || (Double.isNaN(paramDouble)))) {
      throw new IllegalArgumentException(Double.toString(paramDouble));
    }
    B();
    this.E = paramDouble;
  }
  
  private byte i()
  {
    byte b = a();
    if (!o.eg) {}
    return b == 0 ? 7 : b;
  }
  
  public boolean j()
  {
    if (!o.eg) {}
    return (i() & 0x1) != 0;
  }
  
  public boolean k()
  {
    if (!o.eg) {}
    return (i() & 0x4) != 0;
  }
  
  public boolean l()
  {
    if (!o.eg) {}
    return (i() & 0x2) != 0;
  }
  
  private byte m()
  {
    byte b = b();
    if (!o.eg) {}
    return b == 0 ? 56 : b;
  }
  
  public boolean n()
  {
    if (!o.eg) {}
    return (m() & 0x10) != 0;
  }
  
  public boolean o()
  {
    if (!o.eg) {}
    return (m() & 0x8) != 0;
  }
  
  public boolean p()
  {
    if (!o.eg) {}
    return (m() & 0x20) != 0;
  }
  
  public boolean q()
  {
    if (!o.eg) {}
    return (e() & 0x1) != 0;
  }
  
  public boolean r()
  {
    if (!o.eg) {}
    return (e() & 0x2) != 0;
  }
  
  public boolean s()
  {
    if (!o.eg) {}
    return (f() & 0x1) != 0;
  }
  
  public boolean t()
  {
    if (!o.eg) {}
    return (f() & 0x2) != 0;
  }
  
  public boolean u()
  {
    if (!o.eg) {}
    return (g() & 0x1) != 0;
  }
  
  public boolean v()
  {
    if (!o.eg) {}
    return (g() & 0x2) != 0;
  }
  
  public boolean w()
  {
    if (!o.eg) {}
    return (c() & 0x1) != 0;
  }
  
  public boolean x()
  {
    if (!o.eg) {}
    return (c() & 0x2) != 0;
  }
  
  public boolean y()
  {
    if (!o.eg) {}
    return (c() & 0x4) != 0;
  }
  
  public String toString()
  {
    StringBuffer localStringBuffer = new StringBuffer();
    localStringBuffer.append("placement=");
    a(localStringBuffer, a());
    localStringBuffer.append(", side=");
    b(localStringBuffer, b());
    localStringBuffer.append(", sideReference=");
    d(localStringBuffer, c());
    localStringBuffer.append(", angle=");
    localStringBuffer.append(d());
    localStringBuffer.append(", angleReference=");
    e(localStringBuffer, e());
    localStringBuffer.append(", angleRotation=");
    f(localStringBuffer, f());
    localStringBuffer.append(", angleOffset=");
    g(localStringBuffer, g());
    localStringBuffer.append(", distance=");
    localStringBuffer.append(h());
    return localStringBuffer.toString();
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (paramObject != null)
    {
      if (bool) {
        break label37;
      }
      if (getClass() == paramObject.getClass()) {}
    }
    else
    {
      return false;
    }
    label37:
    fd localfd = (fd)paramObject;
    if (!bool) {
      if (a(localfd.A, this.A) != 0) {
        return false;
      }
    }
    if (!bool) {
      if (this.D != localfd.D) {
        return false;
      }
    }
    if (!bool)
    {
      if (this.B != localfd.B) {
        return false;
      }
      if (bool) {}
    }
    else if (this.C != localfd.C)
    {
      return false;
    }
    if (!bool) {
      if (a(localfd.E, this.E) != 0) {
        return false;
      }
    }
    if (!bool) {
      if (this.x != localfd.x) {
        return false;
      }
    }
    if (!bool)
    {
      if (this.y != localfd.y) {
        return false;
      }
      if (bool) {}
    }
    else if (this.z != localfd.z)
    {
      return false;
    }
    return true;
  }
  
  public int hashCode()
  {
    boolean bool = o.eg;
    int i = this.x;
    i = 31 * i + this.y;
    i = 31 * i + this.z;
    long l1 = (bool) || (this.A != 0.0D) ? Double.doubleToLongBits(this.A) : 0L;
    i = 31 * i + (int)(l1 ^ l1 >>> 32);
    i = 31 * i + this.B;
    i = 31 * i + this.C;
    i = 31 * i + this.D;
    l1 = (bool) || (this.E != 0.0D) ? Double.doubleToLongBits(this.E) : 0L;
    i = 31 * i + (int)(l1 ^ l1 >>> 32);
    return i;
  }
  
  private void a(StringBuffer paramStringBuffer, byte paramByte)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (paramByte == 0)
      {
        paramStringBuffer.append("anywhere");
        if ((!bool) && (o.dg == 0)) {
          return;
        }
      }
    }
    if (!bool) {
      if ((paramByte & 0x1) != 0) {
        a(paramStringBuffer, "source");
      }
    }
    if (!bool) {
      if ((paramByte & 0x4) != 0) {
        a(paramStringBuffer, "center");
      }
    }
    if ((paramByte & 0x2) != 0) {
      a(paramStringBuffer, "target");
    }
  }
  
  private void b(StringBuffer paramStringBuffer, byte paramByte)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (paramByte == 0)
      {
        paramStringBuffer.append("anywhere");
        if ((!bool) && (o.dg == 0)) {
          return;
        }
      }
    }
    if (!bool) {
      if ((paramByte & 0x10) != 0) {
        a(paramStringBuffer, "left");
      }
    }
    if (!bool) {
      if ((paramByte & 0x8) != 0) {
        a(paramStringBuffer, "onEdge");
      }
    }
    if ((paramByte & 0x20) != 0) {
      a(paramStringBuffer, "right");
    }
  }
  
  private void d(StringBuffer paramStringBuffer, byte paramByte)
  {
    if ((paramByte & 0x2) != 0) {
      a(paramStringBuffer, "absolute_left_in_north");
    }
  }
  
  private void e(StringBuffer paramStringBuffer, byte paramByte)
  {
    if (!o.eg) {
      if ((paramByte & 0x1) != 0) {
        a(paramStringBuffer, "absolute");
      }
    }
    if ((paramByte & 0x2) != 0) {
      a(paramStringBuffer, "relative_to_edge_flow");
    }
  }
  
  private void f(StringBuffer paramStringBuffer, byte paramByte)
  {
    if (!o.eg) {
      if ((paramByte & 0x1) != 0) {
        a(paramStringBuffer, "co");
      }
    }
    if ((paramByte & 0x2) != 0) {
      a(paramStringBuffer, "counter");
    }
  }
  
  private void g(StringBuffer paramStringBuffer, byte paramByte)
  {
    if (!o.eg) {
      if ((paramByte & 0x1) != 0) {
        a(paramStringBuffer, "0");
      }
    }
    if ((paramByte & 0x2) != 0) {
      a(paramStringBuffer, "180");
    }
  }
  
  private void a(StringBuffer paramStringBuffer, String paramString)
  {
    boolean bool = o.eg;
    if (!bool) {
      if (paramStringBuffer.length() != 0)
      {
        if (bool) {
          break label46;
        }
        if (paramStringBuffer.charAt(paramStringBuffer.length() - 1) != '=') {
          paramStringBuffer.append('|');
        }
      }
    }
    label46:
    paramStringBuffer.append(paramString);
  }
  
  public boolean z()
  {
    return this.F;
  }
  
  public void A()
  {
    this.F = true;
  }
  
  private void B()
  {
    if (z()) {
      throw new IllegalStateException("Immutable instance!");
    }
  }
  
  static int a(double paramDouble1, double paramDouble2)
  {
    boolean bool = o.eg;
    if (!bool)
    {
      if (paramDouble1 > paramDouble2) {
        return 1;
      }
      if (bool) {}
    }
    else if (paramDouble1 < paramDouble2)
    {
      return -1;
    }
    long l1 = Double.doubleToLongBits(paramDouble1);
    long l2 = Double.doubleToLongBits(paramDouble2);
    if (!bool) {}
    if (!bool) {}
    return l1 > l2 ? 1 : l1 == l2 ? 0 : -1;
  }
  
  public static fd g(byte paramByte)
  {
    synchronized (G)
    {
      int i = paramByte & 0xFF;
      fd localfd = G[i];
      if (!o.eg) {
        if (localfd == null)
        {
          localfd = h(paramByte);
          G[i] = localfd;
        }
      }
      return localfd;
    }
  }
  
  private static fd h(byte paramByte)
  {
    fd localfd = new fd();
    localfd.a((byte)(paramByte & 0x7));
    localfd.b((byte)(paramByte & 0x38));
    localfd.A();
    return localfd;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.fd
 * JD-Core Version:    0.7.0.1
 */